@mixin bcg-rgb-color($a,$b,$c){
  background-color:rgb($a,$b,$c);
}
@mixin font($size,$family){
  font-size: $size;
  font-family: $family;
}
@mixin bcg-img($photo,$x-offet,$y-offset,$x-size,$y-size,$repeat:no-repeat){
  background:url("../images/#{$photo}") $repeat $x-offet $y-offset;
  background-size: $x-size $y-size;
}
@mixin iconfont($size,$weight){
  font-family:"iconfont";
  font-style: normal;
  font-weight: $weight;
  font-size: $size;
}
%link-a{
  display:block;
  width:100%;
  height:100%;
  position:absolute;
  top:0px;
  left:0px;
  z-index: 9;
  -webkit-tap-highlight-color: rgba(255,0,0,0);
}
@mixin absolute_left_top($left,$top){
  position:absolute;
  left:$left;
  top:$top;
}
@mixin absolute_right_top($right,$top){
  position:absolute;
  right:$right;
  top:$top;
}
@mixin absolute_left_bottom($left,$bottom){
  position:absolute;
  left:$left;
  bottom:$bottom;
}
@mixin absolute_right_bottom($right,$bottom){
  position:absolute;
  right:$right;
  bottom:$bottom;
}
@mixin absolute_top_bottom($top,$bottom){
  position:absolute;
  top:$top;
  bottom:$bottom;
}
%oneline-ellipsis{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@mixin mulline-ellipsis($lines){
  display:-webkit-box;
  -webkit-line-clamp:$lines;
  line-clamp:$lines;
  overflow: hidden;
  -webkit-box-orient: vertical;
  box-orient: vertical;
}
%swiper{
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}
%flex-h-center{
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
}
@mixin absolute_center($width,$height){
  position:absolute;
  left:50%;
  top:50%;
  margin-top: -($height) / 16 / 4+rem;
  margin-left: -($width) / 16 / 4+rem;
}
@mixin absolute_hcenter($width){
  position:absolute;
  left:50%;
  margin-left: -($width) / 16 / 4+rem;
}
%write-mode{
  writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  *writing-mode: tb-rl;
}
%center-transform{
  position:absolute;
  top:50%;
  left:50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
@function count($value){
  @return ($value/16/2)+rem;
}